package com.corpcredit.model;

// Generated Jul 22, 2008 11:56:54 PM by Hibernate Tools 3.2.0.CR1

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

/**
 * Xjllzk generated by hbm2java
 */
@Entity
@Table(name = "xjllzk")
public class Xjllzk implements java.io.Serializable
{

    private Long id;
    private int version;
    private Jbqk jbqk;
    private String username;
    private String operation;
    private Date optdate;
    private long ny;
    private BigDecimal jylr;
    private BigDecimal jylc;
    private BigDecimal jyje;
    private BigDecimal tzlr;
    private BigDecimal tzlc;
    private BigDecimal tzje;
    private BigDecimal rzlr;
    private BigDecimal rzlc;
    private BigDecimal rzje;

    public Xjllzk()
    {
    }

    public Xjllzk( Long id, long ny )
    {
        this.id = id;
        this.ny = ny;
    }

    public Xjllzk( Long id,
                   Jbqk jbqk,
                   String username,
                   String operation,
                   Date optdate,
                   long ny,
                   BigDecimal jylr,
                   BigDecimal jylc,
                   BigDecimal jyje,
                   BigDecimal tzlr,
                   BigDecimal tzlc,
                   BigDecimal tzje,
                   BigDecimal rzlr,
                   BigDecimal rzlc,
                   BigDecimal rzje )
    {
        this.id = id;
        this.jbqk = jbqk;
        this.username = username;
        this.operation = operation;
        this.optdate = optdate;
        this.ny = ny;
        this.jylr = jylr;
        this.jylc = jylc;
        this.jyje = jyje;
        this.tzlr = tzlr;
        this.tzlc = tzlc;
        this.tzje = tzje;
        this.rzlr = rzlr;
        this.rzlc = rzlc;
        this.rzje = rzje;
    }

    @Id
    @Column(name = "ID", unique = true, nullable = false)
    @GeneratedValue(strategy=GenerationType.AUTO)
    public Long getId()
    {
        return this.id;
    }

    public void setId( Long id )
    {
        this.id = id;
    }

    @Version
    @Column(name = "version", nullable = false)
    public int getVersion()
    {
        return this.version;
    }

    public void setVersion( int version )
    {
        this.version = version;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "jbq_ID")
    public Jbqk getJbqk()
    {
        return this.jbqk;
    }

    public void setJbqk( Jbqk jbqk )
    {
        this.jbqk = jbqk;
    }

    @Column(name = "username", length = 50)
    public String getUsername()
    {
        return this.username;
    }

    public void setUsername( String username )
    {
        this.username = username;
    }

    @Column(name = "operation", length = 20)
    public String getOperation()
    {
        return this.operation;
    }

    public void setOperation( String operation )
    {
        this.operation = operation;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "optdate", length = 23)
    public Date getOptdate()
    {
        return this.optdate;
    }

    public void setOptdate( Date optdate )
    {
        this.optdate = optdate;
    }

    @Column(name = "ny", nullable = false)
    public long getNy()
    {
        return this.ny;
    }

    public void setNy( long ny )
    {
        this.ny = ny;
    }

    @Column(name = "jylr", precision = 18)
    public BigDecimal getJylr()
    {
        return this.jylr;
    }

    public void setJylr( BigDecimal jylr )
    {
        this.jylr = jylr;
    }

    @Column(name = "jylc", precision = 18)
    public BigDecimal getJylc()
    {
        return this.jylc;
    }

    public void setJylc( BigDecimal jylc )
    {
        this.jylc = jylc;
    }

    @Column(name = "jyje", precision = 18)
    public BigDecimal getJyje()
    {
        return this.jyje;
    }

    public void setJyje( BigDecimal jyje )
    {
        this.jyje = jyje;
    }

    @Column(name = "tzlr", precision = 18)
    public BigDecimal getTzlr()
    {
        return this.tzlr;
    }

    public void setTzlr( BigDecimal tzlr )
    {
        this.tzlr = tzlr;
    }

    @Column(name = "tzlc", precision = 18)
    public BigDecimal getTzlc()
    {
        return this.tzlc;
    }

    public void setTzlc( BigDecimal tzlc )
    {
        this.tzlc = tzlc;
    }

    @Column(name = "tzje", precision = 18)
    public BigDecimal getTzje()
    {
        return this.tzje;
    }

    public void setTzje( BigDecimal tzje )
    {
        this.tzje = tzje;
    }

    @Column(name = "rzlr", precision = 18)
    public BigDecimal getRzlr()
    {
        return this.rzlr;
    }

    public void setRzlr( BigDecimal rzlr )
    {
        this.rzlr = rzlr;
    }

    @Column(name = "rzlc", precision = 18)
    public BigDecimal getRzlc()
    {
        return this.rzlc;
    }

    public void setRzlc( BigDecimal rzlc )
    {
        this.rzlc = rzlc;
    }

    @Column(name = "rzje", precision = 18)
    public BigDecimal getRzje()
    {
        return this.rzje;
    }

    public void setRzje( BigDecimal rzje )
    {
        this.rzje = rzje;
    }

}
